<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class admin extends Model
{
    //
    protected $table = 'admins';
    protected $primaryKey = 'id';

    public function admin_hasOne_admin1()
    {
        return $this->hasone('App\Models\admin1','role','id');
    }

    public function admin_hasmany_admin1()
    {
        return $this->hasMany('App\Models\admin1','role','id');
    }

    public function admin_belongsTo_admin1(){
        return $this->belongsTo('App\Models\admin1','id','role');
    }


}
